class CreateTopic < ActiveRecord::Migration[5.2]
  def change
    create_table :topics do |t|
      t.string :sale_or_buy
      t.string :name
      t.string :title
      t.decimal :price
      t.string :phone
      t.integer :province_id
      t.integer :city_id
      t.integer :district_id
      t.text :description
      t.integer :user_id

      t.timestamps
    end
  end
end
